package com.vimi8.ebb.auth.model;

import java.util.Objects;

import io.swagger.annotations.ApiModelProperty;




/**
 * ClientUser
 */
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.SpringCodegen", date = "2016-10-12T07:37:27.227Z")

public class ClientUser   {
  private String openid = null;
  private String userId=null;
  private String scopes = null;
  private String job = null;
  private String clientOrgClass=null;
  private String resources = null;
  @ApiModelProperty(value = "用户id.")
  public String getUserId() {
    return userId;
  }

  public void setUserId(String userId) {
    this.userId = userId;
  }

  public ClientUser openid(String openid) {
    this.openid = openid;
    return this;
  }

  public String getClientOrgClass() {
    return clientOrgClass;
  }

  public void setClientOrgClass(String clientOrgClass) {
    this.clientOrgClass = clientOrgClass;
  }

  /**
   * 开放的用户标识.
   * @return openid
  **/
  @ApiModelProperty(value = "开放的用户标识.")
  public String getOpenid() {
    return openid;
  }

  public void setOpenid(String openid) {
    this.openid = openid;
  }

  public ClientUser scopes(String scopes) {
    this.scopes = scopes;
    return this;
  }

   /**
   * 权限范围列表.
   * @return scopes
  **/
  @ApiModelProperty(value = "权限范围列表.")
  public String getScopes() {
    return scopes;
  }

  public void setScopes(String scopes) {
    this.scopes = scopes;
  }




  public ClientUser job(String job) {
    this.job = job;
    return this;
  }

  /**
   * 工作岗位.
   * @return resources
   **/
  @ApiModelProperty(value = "工作岗位.")
  public String getJob() {
    return job;
  }

  public void setJob(String job) {
    this.job = job;
  }

  public ClientUser resources(String resources) {
    this.resources = resources;
    return this;
  }

   /**
   * 资源列表.
   * @return resources
  **/
  @ApiModelProperty(value = "资源列表.")
  public String getResources() {
    return resources;
  }

  public void setResources(String resources) {
    this.resources = resources;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ClientUser clientUser = (ClientUser) o;
    return Objects.equals(this.openid, clientUser.openid) &&
        Objects.equals(this.scopes, clientUser.scopes) &&
        Objects.equals(this.resources, clientUser.resources);
  }

  @Override
  public int hashCode() {
    return Objects.hash(openid, scopes, resources);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ClientUser {\n");
    
    sb.append("    openid: ").append(toIndentedString(openid)).append("\n");
    sb.append("    scopes: ").append(toIndentedString(scopes)).append("\n");
    sb.append("    resources: ").append(toIndentedString(resources)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

